]> dgit.raspbian.org Git - gnome-shell.git/commit
quickSettings: Adjust menu width using contraints instead of CSS
authorSebastian Keller <skeller@gnome.org>
Tue, 17 Mar 2026 01:51:44 +0000 (02:51 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 24 Mar 2026 20:59:43 +0000 (20:59 +0000)
commitcec702b0cc6dce9b26840add8e8d03dbdc7a8b24
treee12e63e5521b9a5b15e8bee2e9e3f7947267e550
parent1604913a92a071fa88831b2865b172b5df3fe4cf
quickSettings: Adjust menu width using contraints instead of CSS

The width of the overlay actor for quick settings menus was as wide as
the whole box pointer and the menus placed inside the overlay actor were
then adjusted with CSS margins to have the same width and spacing as the
other elements.

This meant that in `QuickSettingsLayout` the width of the overlay actor
would have to be dependent on the size of a parent actor rather than the
associated container. In the next commit we are however going to need to
use the correct width, so this commit changes the width of the overlay
actor to be the same as other actors in the grid.

This also avoids the need to use CSS to adjust the width and horizontal
placement.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4136>
data/theme/gnome-shell-sass/widgets/_quick-settings.scss
js/ui/quickSettings.js